<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script>
		Promise.resolve({code:200,msg:"测试成功"})
		.then(res=>{
			console.log("res=>",res)
		})
		
		Promise.reject({code:404,msg:"资源路径错误"})
		.catch(e=>{
			console.log("e=>",e)
		})
	</script>
	<body>
	</body>
</html>